import request from '@/utils/request'
//   联想菜单
const getSuggListAPI = ({ keyword }) => {
  return request({
    method: 'get',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }

  })
}
// 结果列表

const getSearchResuListAPI = ({ keyword, Page = 1 }) => {
  return request({
    method: 'get',
    url: '/v1_0/search',
    params: {
      q: keyword,
      Page
    }
  })
}

export {
  getSuggListAPI,
  getSearchResuListAPI
}
